/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package inseredados;

import java.io.File;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import org.xml.sax.SAXException;

/**
 *
 * @author antonio
 */
public class Inseredados {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ParserConfigurationException, TransformerConfigurationException, TransformerException, SAXException, IOException {
        // TODO code application logic here
        criaXML_1 newxml = new criaXML_1();
        String resumo= new String("resumo");
        String data=new String("data");
        String link=new String("link");
        String keyword=new String("keyword");
        String endereco=new String("");
        File FileXML1 = newxml.setaArquivoXML("c:\\users/Igor/Documents/fileProjeto.xml");
        newxml.novoXML(FileXML1,resumo,link,data,keyword);
        String keyword2=new String("keytohemasterword");
        newxml.insereNovoNOXML(resumo,link,data,keyword2);
        newxml.insereNovoNOXML(resumo,link,data,keyword);
        
        
        
        
    }
}
